<#include "common/main.html">
<#macro bodyId>statistics-agent</#macro>
<#macro content>


<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main ty-common-page">
    <h1 class="page-header">分享达人报表
<!--         <div class="btns"> -->
<!--             <a class="btn btn-success" href="${rc.contextPath}/loan/add">新增申贷</a> -->
<!--         </div> -->
    </h1>
    <div class="tool-bar">
        <div class="filter">
            <form action="" method="get" class="J_filterForm" id="statistics-form">
                <div class="form-group">
                    <div class="col-sm-12">

                        <span class="label-text">姓名：&nbsp; &nbsp;&nbsp;</span>
                        <div class="col4">

                            <input class="form-control" name="name" value="${queryDto.name}"/>
                        </div>
                        <span class="label-text">注册手机号：</span>
                        <div class="col4">

                            <input class="form-control" name="phoneNumber" value="${queryDto.phoneNumber}"/>
                        </div>


                        <span class="label-text">所属支行：</span>
                        <div class="col4">
                            <select class="form-control" name="subBankCode">
                                <option value="" <#if queryDto.subBankCode==null>selected="true"</#if> >请选择</option>
                                    <#list bankList as subBank>
                                 <option value="${subBank.code}" <#if subBank.code==queryDto.subBankCode>selected="true"</#if> >${subBank.name}</option>
                                    </#list>
                            </select>
                        </div>

                        <div></div>
                        <br/>

                        <span class="label-text">开始时间：</span>
                        <div class="col4">
                            <input class="form-control J_startDate" name="startTimeStr" value="${queryDto.startTimeStr}" >
                        </div>

                        <span class="label-text">结束时间：&nbsp;&nbsp;&nbsp;&nbsp;</span>
                        <div class="col4">
                            <input class="form-control J_endDate" name="endTimeStr" value="${queryDto.endTimeStr}" >
                        </div>

                       
                        <button type="submit" class="btn btn-success J_getExcel" data-action="${rc.contextPath}/statistic/talentExport">导出Excel</button>
                        <button type="submit" class="btn btn-success J_search" data-action="${rc.contextPath}/statistic/talentList">查询</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <div class="table-responsive">
        <table class="table ac-table table-hover">
            <thead>
            <tr>
                <th>用户ID</th>
                <th>姓名</th>
                <th>注册手机号</th>
                <th>所属支行</th>
                <th>点赞用户量</th>
                <th>注册用户量</th>
                <th>申贷量</th>
<!--                 <th class="operate1">操作</th> -->
            </tr>
            </thead>
            <tbody>
            <#list statisticTalentDtoList as dto>
            <tr>
                <td>${dto.accountId}</td>
                <td>${dto.name}</td>
                <td>${dto.phoneNumber}</td>
                <td>${dto.subBankName}</td>
                <td>${dto.partnerCount}</td>
                <td>${dto.accountCount}</td>
                <td>${dto.loanCount}</td>
<!--                 <td class="operation"> -->
<!--                    <div class="dropdown"> -->
<!--                        <a class="J_edit" href="/loan/edit?id=${loan.id}">修改</a> -->
<!--                    </div> -->
<!--                 </td> -->
            </tr>
            </#list>
            </tbody>
        </table>
    </div>
    <#include "common/page.html">
</div>

<script>
    var config = {

    }
</script>

</#macro>

<script>
// 	$("[name='provinceId']").change(function () {
// 		$me = $(this);
// 		$me.parents("form").find("[name='cityId']").val("");
// 		$me.parents("form").find("[name='regionId']").val("");
// 		$me.parents("form").submit();
// 	});

// 	$("[name='cityId']").change(function () {
// 		$me = $(this);
// 		$me.parents("form").find("[name='regionId']").val("");
// 		$me.parents("form").submit();
// 	});

// 	$("[name='regionId']").change(function () {
// 		$me = $(this);
// 		$me.parents("form").submit();
// 	});
</script>